<?php defined('BASEPATH') OR exit('No direct script access allowed');

/**
 * Show RSS feeds in your site
 * 
 * @author  	Phil Sturgeon
 * @author		PyroCMS Dev Team
 * @package		PyroCMS\Core\Widgets
 */
class Widget_Subnav extends Widgets
{


	/**
	 * The widget title
	 *
	 * @var array
	 */
	public $title = 'List Navigator';

	/**
	 * The translations for the widget description
	 *
	 * @var array
	 */
	public $description = array(
		'en' => 'Sub Menu Package Management');
	
	/**
	 * The author of the widget
	 *
	 * @var string
	 */
	public $author = 'DEV-TOP';

	/**
	 * The author's website.
	 * 
	 * @var string 
	 */
	public $website = 'http://rooftop.asia/';

	/**
	 * The version of the widget
	 *
	 * @var string
	 */
	public $version = '1.0';

	/**
	 * The fields for customizing the options of the widget.
	 *
	 * @var array 
	 */
	

	/**
	 * The main function of the widget.
	 *
	 * @param array $options The options for displaying an HTML widget.
	 * @return array 
	 */
	public function run()
	{
		$this->load->helper('url');
		$this->load->model('tour/tour_m');
		$data['results'] = $this->tour_m->getListSubPackages();
		return $data;
	}
	

}